package com.augurit.wf.common.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.augurit.common.system.service.org.IOmUserService;
import com.augurit.wf.common.dao.SMToSendDao;
import com.augurit.wf.common.entity.SMToSend;
import com.augurit.wf.common.service.ISMToSendService;

@Service
@Transactional
public class SMToSendServiceImpl implements ISMToSendService {

	@Autowired
	private SMToSendDao sMToSendDao;
	@Autowired
	private IOmUserService omyserService;
	
	public void delete(Long... ids) {
		this.sMToSendDao.delete(ids);
	}

	public SMToSend get(Long id) {
		return this.sMToSendDao.get(id);
	}

	public void save(SMToSend... entities) {
		if(entities != null && entities.length>0){
			for(SMToSend entity :entities)
				this.sMToSendDao.save(entity);
		}
	}
	
}
